package com.candy.exp;

/**
 * @author donglin
 * @Title:
 * @类名: Test01
 * @date 2020/12/30
 */
public class Test01 {
    public static void main(String[] args) {
        int a=3;
        int b=0;
        int c=0;
        try {
            c=a/b;
        } catch (ArithmeticException e) {
            System.out.println("分母不能为0");
        } catch (NullPointerException e){

        }catch (Exception e){

        }



        finally {
            System.out.println("程序运行结束");
        }


    }
}
